package org.aclyyx.malata.app.e5;

import java.io.File;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.util.List;

import org.aclyyx.malata.app.StaticData;


public class WriteAll {

	public void write(List<AllObj> all) throws Exception {

		File file = new File(StaticData.E5_ALL_DATA_PATH);
		if (!file.exists()) {
			file.createNewFile();
		}
		ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));
		oos.writeObject(all);
		
		oos.close();
	}
}
